/**
 * 个人标签 JS
 */
$(function(){

});

$('.table-sort').dataTable({
	"aaSorting": [[ 1, "desc" ]],//默认第几个排序
	"bStateSave": true,//状态保存
	"aoColumnDefs": [
	  //{"bVisible": false, "aTargets": [ 3 ]} //控制列的隐藏显示
	  {"orderable":false,"aTargets":[0,5]}// 不参与排序的列
	]
});

/*添加标签*/
function add_person_tag(title,url,w,h){
	layer_show(title,url,w,h);
}

/*编辑标签*/
function edit_person_tag(title,url,w,h){
	layer_show(title,url,w,h);
}

/*标签-删除*/
function person_tag_del(obj,id){
	layer.confirm('确认要删除吗？',function(index){
		$.ajax({
			type : "delete",
			dataType : "json",
			url:"delete/"+id+".do",
			success : function(data) {
				if (data.status == "success") {
					$(obj).parents("tr").remove();
					layer.msg(data.message,{icon:1});
				} else {
					layer.msg(data.message,{icon:2});
				}
			}
		});
	});
}

/**
 * 批量删除
 */
function datadel(){
	
}